home *** CD-ROM | disk | FTP | other *** search
/ Apple WWDC 1996 / WWDC96_1996 (CD).toast / Technology Materials / MacOS 8 Resources / Developer Tools / Mac OS 8 Interfaces & Libraries / Interfaces / AIncludes / QDOffscreen.a < prev    next >
Encoding:
Text File  |  1996-05-01  |  7.3 KB  |  380 lines  |  [TEXT/MPS ]

  1. ;
  2. ;    File:        QDOffscreen.a
  3. ;
  4. ;    Contains:    Quickdraw Offscreen GWorld Interfaces.
  5. ;
  6. ;    Version:    Technology:    System 7.5
  7. ;                Release:    Universal Interfaces 3.0d3 on Copland DR1
  8. ;
  9. ;    Copyright:    © 1984-1996 by Apple Computer, Inc.  All rights reserved.
  10. ;
  11. ;    Bugs?:        If you find a problem with this file, send the file and version
  12. ;                information (from above) and the problem description to:
  13. ;
  14. ;                    Internet:    apple.bugs@applelink.apple.com
  15. ;                    AppleLink:    APPLE.BUGS
  16. ;
  17. ;
  18.     IF &TYPE('__QDOFFSCREEN__') = 'UNDEFINED' THEN
  19. __QDOFFSCREEN__ SET 1
  20.  
  21.     IF &TYPE('__ERRORS__') = 'UNDEFINED' THEN
  22.     include 'Errors.a'
  23.     ENDIF
  24.     IF &TYPE('__QUICKDRAW__') = 'UNDEFINED' THEN
  25.     include 'Quickdraw.a'
  26.     ENDIF
  27.     IF FOR_SYSTEM7_AND_SYSTEM8_COOPERATIVE THEN
  28.  
  29. pixPurgeBit                        EQU        0
  30. noNewDeviceBit                    EQU        1
  31. useTempMemBit                    EQU        2
  32. keepLocalBit                    EQU        3
  33. pixelsPurgeableBit                EQU        6
  34. pixelsLockedBit                    EQU        7
  35. mapPixBit                        EQU        16
  36. newDepthBit                        EQU        17
  37. alignPixBit                        EQU        18
  38. newRowBytesBit                    EQU        19
  39. reallocPixBit                    EQU        20
  40. clipPixBit                        EQU        28
  41. stretchPixBit                    EQU        29
  42. ditherPixBit                    EQU        30
  43. gwFlagErrBit                    EQU        31
  44.  
  45. pixPurge                        EQU        $00000001
  46. noNewDevice                        EQU        $00000002
  47. useTempMem                        EQU        $00000004
  48. keepLocal                        EQU        $00000008
  49. pixelsPurgeable                    EQU        $00000040
  50. pixelsLocked                    EQU        $00000080
  51. mapPix                            EQU        $00010000
  52. newDepth                        EQU        $00020000
  53. alignPix                        EQU        $00040000
  54. newRowBytes                        EQU        $00080000
  55. reallocPix                        EQU        $00100000
  56. clipPix                            EQU        $10000000
  57. stretchPix                        EQU        $20000000
  58. ditherPix                        EQU        $40000000
  59. gwFlagErr                        EQU        $80000000
  60. ; typedef unsigned long                 GWorldFlags
  61.  
  62. ;  Type definition of a GWorldPtr 
  63. ; typedef CGrafPtr                         GWorldPtr
  64.  
  65. ;
  66. ; pascal QDErr NewGWorld(GWorldPtr *offscreenGWorld, short PixelDepth, const Rect *boundsRect, CTabHandle cTable, GDHandle aGDevice, GWorldFlags flags)
  67. ;
  68.     IF ¬ GENERATINGCFM THEN
  69.         Macro
  70.         _NewGWorld
  71.             move.l              #$00160000,D0
  72.             dc.w                $AB1D
  73.         EndM
  74.     ELSE
  75.         IMPORT_CFM_FUNCTION NewGWorld
  76.     ENDIF
  77.  
  78. ;
  79. ; pascal Boolean LockPixels(PixMapHandle pm)
  80. ;
  81.     IF ¬ GENERATINGCFM THEN
  82.         Macro
  83.         _LockPixels
  84.             move.l              #$00040001,D0
  85.             dc.w                $AB1D
  86.         EndM
  87.     ELSE
  88.         IMPORT_CFM_FUNCTION LockPixels
  89.     ENDIF
  90.  
  91. ;
  92. ; pascal void UnlockPixels(PixMapHandle pm)
  93. ;
  94.     IF ¬ GENERATINGCFM THEN
  95.         Macro
  96.         _UnlockPixels
  97.             move.l              #$00040002,D0
  98.             dc.w                $AB1D
  99.         EndM
  100.     ELSE
  101.         IMPORT_CFM_FUNCTION UnlockPixels
  102.     ENDIF
  103.  
  104. ;
  105. ; pascal GWorldFlags UpdateGWorld(GWorldPtr *offscreenGWorld, short pixelDepth, const Rect *boundsRect, CTabHandle cTable, GDHandle aGDevice, GWorldFlags flags)
  106. ;
  107.     IF ¬ GENERATINGCFM THEN
  108.         Macro
  109.         _UpdateGWorld
  110.             move.l              #$00160003,D0
  111.             dc.w                $AB1D
  112.         EndM
  113.     ELSE
  114.         IMPORT_CFM_FUNCTION UpdateGWorld
  115.     ENDIF
  116.  
  117. ;
  118. ; pascal void DisposeGWorld(GWorldPtr offscreenGWorld)
  119. ;
  120.     IF ¬ GENERATINGCFM THEN
  121.         Macro
  122.         _DisposeGWorld
  123.             move.l              #$00040004,D0
  124.             dc.w                $AB1D
  125.         EndM
  126.     ELSE
  127.         IMPORT_CFM_FUNCTION DisposeGWorld
  128.     ENDIF
  129.  
  130. ;
  131. ; pascal void GetGWorld(CGrafPtr *port, GDHandle *gdh)
  132. ;
  133.     IF ¬ GENERATINGCFM THEN
  134.         Macro
  135.         _GetGWorld
  136.             move.l              #$00080005,D0
  137.             dc.w                $AB1D
  138.         EndM
  139.     ELSE
  140.         IMPORT_CFM_FUNCTION GetGWorld
  141.     ENDIF
  142.  
  143. ;
  144. ; pascal void SetGWorld(CGrafPtr port, GDHandle gdh)
  145. ;
  146.     IF ¬ GENERATINGCFM THEN
  147.         Macro
  148.         _SetGWorld
  149.             move.l              #$00080006,D0
  150.             dc.w                $AB1D
  151.         EndM
  152.     ELSE
  153.         IMPORT_CFM_FUNCTION SetGWorld
  154.     ENDIF
  155.  
  156. ;
  157. ; pascal void CTabChanged(CTabHandle ctab)
  158. ;
  159.     IF ¬ GENERATINGCFM THEN
  160.         Macro
  161.         _CTabChanged
  162.             move.l              #$00040007,D0
  163.             dc.w                $AB1D
  164.         EndM
  165.     ELSE
  166.         IMPORT_CFM_FUNCTION CTabChanged
  167.     ENDIF
  168.  
  169. ;
  170. ; pascal void PixPatChanged(PixPatHandle ppat)
  171. ;
  172.     IF ¬ GENERATINGCFM THEN
  173.         Macro
  174.         _PixPatChanged
  175.             move.l              #$00040008,D0
  176.             dc.w                $AB1D
  177.         EndM
  178.     ELSE
  179.         IMPORT_CFM_FUNCTION PixPatChanged
  180.     ENDIF
  181.  
  182. ;
  183. ; pascal void PortChanged(GrafPtr port)
  184. ;
  185.     IF ¬ GENERATINGCFM THEN
  186.         Macro
  187.         _PortChanged
  188.             move.l              #$00040009,D0
  189.             dc.w                $AB1D
  190.         EndM
  191.     ELSE
  192.         IMPORT_CFM_FUNCTION PortChanged
  193.     ENDIF
  194.  
  195. ;
  196. ; pascal void GDeviceChanged(GDHandle gdh)
  197. ;
  198.     IF ¬ GENERATINGCFM THEN
  199.         Macro
  200.         _GDeviceChanged
  201.             move.l              #$0004000A,D0
  202.             dc.w                $AB1D
  203.         EndM
  204.     ELSE
  205.         IMPORT_CFM_FUNCTION GDeviceChanged
  206.     ENDIF
  207.  
  208. ;
  209. ; pascal void AllowPurgePixels(PixMapHandle pm)
  210. ;
  211.     IF ¬ GENERATINGCFM THEN
  212.         Macro
  213.         _AllowPurgePixels
  214.             move.l              #$0004000B,D0
  215.             dc.w                $AB1D
  216.         EndM
  217.     ELSE
  218.         IMPORT_CFM_FUNCTION AllowPurgePixels
  219.     ENDIF
  220.  
  221. ;
  222. ; pascal void NoPurgePixels(PixMapHandle pm)
  223. ;
  224.     IF ¬ GENERATINGCFM THEN
  225.         Macro
  226.         _NoPurgePixels
  227.             move.l              #$0004000C,D0
  228.             dc.w                $AB1D
  229.         EndM
  230.     ELSE
  231.         IMPORT_CFM_FUNCTION NoPurgePixels
  232.     ENDIF
  233.  
  234. ;
  235. ; pascal GWorldFlags GetPixelsState(PixMapHandle pm)
  236. ;
  237.     IF ¬ GENERATINGCFM THEN
  238.         Macro
  239.         _GetPixelsState
  240.             move.l              #$0004000D,D0
  241.             dc.w                $AB1D
  242.         EndM
  243.     ELSE
  244.         IMPORT_CFM_FUNCTION GetPixelsState
  245.     ENDIF
  246.  
  247. ;
  248. ; pascal void SetPixelsState(PixMapHandle pm, GWorldFlags state)
  249. ;
  250.     IF ¬ GENERATINGCFM THEN
  251.         Macro
  252.         _SetPixelsState
  253.             move.l              #$0008000E,D0
  254.             dc.w                $AB1D
  255.         EndM
  256.     ELSE
  257.         IMPORT_CFM_FUNCTION SetPixelsState
  258.     ENDIF
  259.  
  260. ;
  261. ; pascal Ptr GetPixBaseAddr(PixMapHandle pm)
  262. ;
  263.     IF ¬ GENERATINGCFM THEN
  264.         Macro
  265.         _GetPixBaseAddr
  266.             move.l              #$0004000F,D0
  267.             dc.w                $AB1D
  268.         EndM
  269.     ELSE
  270.         IMPORT_CFM_FUNCTION GetPixBaseAddr
  271.     ENDIF
  272.  
  273. ;
  274. ; pascal QDErr NewScreenBuffer(const Rect *globalRect, Boolean purgeable, GDHandle *gdh, PixMapHandle *offscreenPixMap)
  275. ;
  276.     IF ¬ GENERATINGCFM THEN
  277.         Macro
  278.         _NewScreenBuffer
  279.             move.l              #$000E0010,D0
  280.             dc.w                $AB1D
  281.         EndM
  282.     ELSE
  283.         IMPORT_CFM_FUNCTION NewScreenBuffer
  284.     ENDIF
  285.  
  286. ;
  287. ; pascal void DisposeScreenBuffer(PixMapHandle offscreenPixMap)
  288. ;
  289.     IF ¬ GENERATINGCFM THEN
  290.         Macro
  291.         _DisposeScreenBuffer
  292.             move.l              #$00040011,D0
  293.             dc.w                $AB1D
  294.         EndM
  295.     ELSE
  296.         IMPORT_CFM_FUNCTION DisposeScreenBuffer
  297.     ENDIF
  298.  
  299. ;
  300. ; pascal GDHandle GetGWorldDevice(GWorldPtr offscreenGWorld)
  301. ;
  302.     IF ¬ GENERATINGCFM THEN
  303.         Macro
  304.         _GetGWorldDevice
  305.             move.l              #$00040012,D0
  306.             dc.w                $AB1D
  307.         EndM
  308.     ELSE
  309.         IMPORT_CFM_FUNCTION GetGWorldDevice
  310.     ENDIF
  311.  
  312. ;
  313. ; pascal Boolean QDDone(GrafPtr port)
  314. ;
  315.     IF ¬ GENERATINGCFM THEN
  316.         Macro
  317.         _QDDone
  318.             move.l              #$00040013,D0
  319.             dc.w                $AB1D
  320.         EndM
  321.     ELSE
  322.         IMPORT_CFM_FUNCTION QDDone
  323.     ENDIF
  324.  
  325. ;
  326. ; pascal long OffscreenVersion(void )
  327. ;
  328.     IF ¬ GENERATINGCFM THEN
  329.         Macro
  330.         _OffscreenVersion
  331.             moveq               #20,D0
  332.             dc.w                $AB1D
  333.         EndM
  334.     ELSE
  335.         IMPORT_CFM_FUNCTION OffscreenVersion
  336.     ENDIF
  337.  
  338. ;
  339. ; pascal QDErr NewTempScreenBuffer(const Rect *globalRect, Boolean purgeable, GDHandle *gdh, PixMapHandle *offscreenPixMap)
  340. ;
  341.     IF ¬ GENERATINGCFM THEN
  342.         Macro
  343.         _NewTempScreenBuffer
  344.             move.l              #$000E0015,D0
  345.             dc.w                $AB1D
  346.         EndM
  347.     ELSE
  348.         IMPORT_CFM_FUNCTION NewTempScreenBuffer
  349.     ENDIF
  350.  
  351. ;
  352. ; pascal Boolean PixMap32Bit(PixMapHandle pmHandle)
  353. ;
  354.     IF ¬ GENERATINGCFM THEN
  355.         Macro
  356.         _PixMap32Bit
  357.             move.l              #$00040016,D0
  358.             dc.w                $AB1D
  359.         EndM
  360.     ELSE
  361.         IMPORT_CFM_FUNCTION PixMap32Bit
  362.     ENDIF
  363.  
  364. ;
  365. ; pascal PixMapHandle GetGWorldPixMap(GWorldPtr offscreenGWorld)
  366. ;
  367.     IF ¬ GENERATINGCFM THEN
  368.         Macro
  369.         _GetGWorldPixMap
  370.             move.l              #$00040017,D0
  371.             dc.w                $AB1D
  372.         EndM
  373.     ELSE
  374.         IMPORT_CFM_FUNCTION GetGWorldPixMap
  375.     ENDIF
  376.  
  377.     ENDIF
  378.     ENDIF ; __QDOFFSCREEN__ 
  379.  
  380.